/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bff.bjj.ui.component;

import com.bff.bjj.utils.Resources;
import javax.swing.JDialog;

/**
 *
 * @author Bill
 */
public class BJJDialog extends JDialog {

    public BJJDialog(java.awt.Frame parent) {
        this(parent, true);
        setPanelColors();
    }

    public BJJDialog(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        setPanelColors();
    }

    protected void setPanelColors() {
        setBackground(ColorProperties.PANEL_BACKGROUND);
    }

    protected String getResource(Resources.LABEL_KEY key) {
        return Resources.getMessage(key);
    }
}
